program dimainfo3;

{$APPTYPE CONSOLE}

uses
  SysUtils;
 var
  q,w,x,y,r,a,s,d:integer;
  a1,b1,c1,a2,b2,c2,e:real;
  begin
  readln(q);
  readln(w);
  readln(x);
  readln(y);
  readln(r);
  a:=x-q;
  s:=y-w;
  d:=q*q+w*w;
  e:=q*(sqrt(d-r*r));
  a1:=(r-(r*w-e)/d*w)/q;
  a2:=(r-(r*w-e)/d*w)/q;
  b1:=(r*w+e)/d;
  b2:=(r*w-e)/d;
  c1:=-(a1*q+b2*w);
  c2:=-(a2*q+b1*w);
  writeln;
  writeln('a1=',a1);
  writeln('a2=',a2);
  writeln('b1=',b1);
  writeln('b2=',b2);
  writeln('c1=',c1);
  writeln('c2=',c2);
  end.

 